 begintownscript;
variables;
short choice,i;

body;
beginstate init_state;
i = 0;
while(char_ok(i) == 0){
	i = i + 1;
}
revive_party();
message_dialog("A hand on my shoulder woke me. It was Miller and he was shaking me awake-- usually I'm a light sleeper but I must have out cold because he was shaking pretty hard.","_Hey friend, I'm sorry about waking you up but we're here now. We've been waiting in line for about an hour, but now it's our turn._");
relocate_character(i,25,33);
set_character_facing(i,2);
set_character_pose(i,0);
force_view_center(25,33);
force_instant_terrain_redraw();
play_sound(20);
set_char_dialogue_pic(26,307,0);
set_name(26,"Miller");
break;

beginstate exit_state;
break;

beginstate start_state;
if(get_flag(10,0) == 0)
	set_flag(10,0,1);
break;

beginstate 10;
//restore_pc(1);
break;

beginstate 11;
block_entry(1);
message_dialog("I was late enough without another delay.","");
break;

beginstate 12;
if(get_flag(10,0) != 2)
	block_entry(1);
if(get_flag(10,1) == 0)
	begin_talk_mode(2);
break;

beginstate 13;
block_entry(1);
message_dialog("The package was to be delivered to Warehouse G at the waterfront, which was to the east. I couldn't afford any more delays.","");
break;


beginstate 14;
if(get_flag(10,2) == 0){
	message_dialog("Cigosal.... I don't know if you've ever been there, I suppose you have, but if you haven't been there recently let me warn you, it's gone downhill.","It all started when Lord Gromwell took power.... but you don't want a history lesson and I'm not even the right man to give it. I'm just saying that there are still places where people don't live in fear.");
	message_dialog("It's not the kind of city I'd voluntarily visit, but I don't get much choice when it comes to where my dispatches take me. The package was to be delivered to Samael of Warehouse G at the waterfront.","I was to give it to Samael, and none other than Samael. The directions were adamant about that."); 
	set_flag(10,2,1);
}
break;

beginstate 15;
set_character_facing(i,2);
move_to_new_town(11,40,27);
//move_to_new_town(3,40,27);
break;

beginstate 100;
block_entry(1);
break;